package com.nuoniu.sibanyun.entity.cms;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 网站基本设置
 * </p>
 *
 * @author 小啊刚
 * @since 2021-08-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cms_info")
@ApiModel(value="CmsInfo对象", description="网站基本设置")
public class CmsInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "使用模版id")
    @TableField("template_id")
    private Integer templateId;

    @ApiModelProperty(value = "首页seo标题")
    @TableField("seo_title")
    private String seoTitle;

    @ApiModelProperty(value = "网站logo地址")
    @TableField("logo_url")
    private String logoUrl;

    @ApiModelProperty(value = "网站关键字")
    @TableField("keyword")
    private String keyword;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "版权信息")
    @TableField("copyright_info")
    private String copyrightInfo;

    @ApiModelProperty(value = "备案号")
    @TableField("keep_record")
    private String keepRecord;

    @ApiModelProperty(value = "背景色")
    @TableField("bg_color")
    private String bgColor;

    @ApiModelProperty(value = "背景图")
    @TableField("bg_img_url")
    private String bgImgUrl;

    @ApiModelProperty(value = "横幅宽度")
    @TableField("banner_width")
    private Double bannerWidth;

    @ApiModelProperty(value = "横幅高度")
    @TableField("banner_height")
    private Double bannerHeight;

    @ApiModelProperty(value = "横幅显示方式:1图片2视频")
    @TableField("banner_display_mode")
    private Boolean bannerDisplayMode;

//    @ApiModelProperty(value = "横幅图片显示地址")
//    @TableField("banner_img_url")
//    private String bannerImgUrl;

    @ApiModelProperty(value = "访问次数:0不显示 1显示")
    @TableField("is_visits_number")
    private Integer isVisitsNumber;

    @ApiModelProperty(value = "绑定域名")
    @TableField("domain_name")
    private String domainName;

    @ApiModelProperty(value = "域名有效时间")
    @TableField("validity_date")
    private LocalDateTime validityDate;

    @ApiModelProperty(value = "网站地址")
    @TableField("website_url")
    private String websiteUrl;


}
